<template>
  <div></div>
</template>

<script>
import { getFirstUrl } from '@/utils/index.js'
import { mapGetters } from 'vuex'
export default {
  computed: {
    ...mapGetters(['menu'])
  },
  created() {
    this.$router.replace(getFirstUrl(this.menu))
  },
  activated() {
    this.$router.replace(getFirstUrl(this.menu))
  }
}
</script>
